#pragma once
class CBStatic:public CStatic
{
public:
	CBStatic();
	~CBStatic();
	DECLARE_MESSAGE_MAP()
	void SetBkColor(COLORREF color);
private:
	COLORREF bk_color;
	CBrush m_brush;
	CFont m_font;
public:
	afx_msg HBRUSH CtlColor(CDC* /*pDC*/, UINT /*nCtlColor*/);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	void UpdateFont(int cx, int cy, CString str);
};

